import { createApp } from 'vue'
import './style.css'
import H from './App.vue'
import { setupStore } from '@/store';
import { setupRouter } from '@/routers';
import { setupComponents } from './plugins/components.ts';
import type { App } from 'vue';
import 'element-plus/theme-chalk/index.css'
import 'virtual:windi.css'


function setupServe(){
    const app: App<Element> = createApp(H)

    // 注册pinia
    setupStore(app)

    // 注册router
    setupRouter(app)
    
    // 注册组件
    setupComponents(app)

    // 挂载根元素
    app.mount('#app')
}

setupServe()
